package com.xxx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@RefreshScope
@Configuration
@EnableFeignClients  // feign相关代理
@EnableCaching(proxyTargetClass = true)  // 缓存相关代理
@EnableAsync(proxyTargetClass = true)    // 异步方法相关代理
@EnableTransactionManagement(proxyTargetClass = true)  // 事务相关代理
public class MediaAPP {
    public static void main(String[] args) {
        SpringApplication.run(MediaAPP.class, args);
    }
}